dom.canApplyTemplate()

Availability 3.0
Description Checks whether Dreamweaver can perform an Apply To Page operation. This function is valid only for the active document.
Arguments None.
Returns A Boolean value indicating whether the document is not a library item or a template, and that the selection is not within the NOFRAMES tag.